<script>
    let foo = true;
    bar;
</script>

{#snippet bar()}
    hello {foo}
{/snippet}
